Friends Need a Bit More: Maintaining Invariants Over Shared State

نویسندگان

  • Michael Barnett
  • David A. Naumann
چکیده

A friendship system is introduced for modular static verification of object invariants. It extends a previous methodology, based on ownership hierarchy encoded in auxiliary state, to allow for state dependence across ownership boundaries. Friendship describes a formal protocol for a granting class to grant a friend class permission to express its invariant over fields in the granting class. The protocol permits the safe update of the granter’s fields without violating the friend’s invariant. The ensuing proof obligations are minimal and permit many common programming patterns. A soundness proof is sketched. The method is demonstrated on several realistic examples, showing that it significantly expands the domain of programs amenable to static verification.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Abstract Domain for Bit-Vector Inequalities⋆

This paper advances the state of the art in abstract interpretation of machine code. It tackles two of the biggest challenges in machine-code analysis: (1) holding onto invariants about values in memory, and (2) identifying affine-inequality invariants while handling overflow in arithmetic operations over bit-vector data-types. Most current approaches either capture relations only among registe...

متن کامل

Agency, Structure and the Power of Global Health Networks

Global health networks—webs of individuals and organizations linked by a shared concern for a particular condition—have proliferated over the past quarter century. In a recent editorial in this journal, I presented evidence that their effectiveness in addressing four challenges—problem definition, positioning, coalitionbuilding and governance—shapes their ability to influence policy. The editor...

متن کامل

Explicit storage and analysis of billions of states using commodity computers

The objective of this paper is to develop a framework and associated algorithms for explicit state space exploration of discrete event systems that can scale to very large state spaces. We consider classes of resource allocation systems (RAS), where a set of resources are shared by concurrent processes. In particular, we focus on Gadara RAS, whose Petri net representations have recently been us...

متن کامل

A Sequentially Consistent Distributed Shared Memory

Recently, distributed shared memory (DSM) systems have received much attention because such an abstraction simpliies programming. An important class of DSM implementations is one which uses cache memories to improve eeciency. In this paper, we present a cache-consistency protocol for DSM which requires signiicantly less communication than previously proposed protocols. This is achieved by maint...

متن کامل

High-Level Information Interface

This report summarizes progress made in the last period on the use of high-level information to enhance synthesis and verification. We investigated ways to automatically generate and prove word-level invariants inside our existing bit-level solver, i.e. invariants over bit-vectors in the design-under-test that cannot be expressed as a conjunction of bit-level invariants, such as bit-equalities,...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004